<?php
/* 
* @Title:  [货品列表控制器]
* @Author: {chenlei} [chenleib5@126.com]
* @Date:   2014-04-27 21:49:48
* @Last Modified by:   Administrator
* @Last Modified time: 2014-04-27 22:10:33
* @Copyright:  [hn7m.com]
*/
class CombineControl extends CommonControl{
	private $model=NULL;

	public function __init(){
		parent::__init();
		$this->model=K('Combine');
	}
	/**
	 * [del_data 删除商品调用的方法]
	 * @return [type] [description]
	 */
	public function del_data(){
		$gid=Q('get.gid');
		if($this->model->del_combine($gid)){
			$this->success('货品列表相关数据删除成功',U('Comment/del_comment',array('gid'=>$gid)));
		}else{
			go(U('Goods/index'));
		}
	}
}
?>